Skip to content

Commit 92e131c

Browse files
committed
style: fixes
1 parent 2fbe828 commit 92e131c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const DEFAULT_OPTIONS: OptionsInterface = {
3434
* the new language.
3535
*/
3636
export const currentLocale: ComputedRef<string> = computed(() => {
37-
return I18n.getSharedInstance().getCurrentLanguage().value
37+
return I18n.getSharedInstance().getCurrentLanguage().value
3838
})
3939

4040
/**

src/pluralization.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ function extract(segments: string[], number: number): string | null {
4040
* Get the translation string if the condition matches.
4141
*/
4242
function extractFromString(part: string, number: number): string | null {
43-
const matches = part.match(/^[\{\[]([^\[\]\{\}]*)[\}\]](.*)/s) || []
43+
const matches = part.match(/^[\{\[]([^\[\]\{\}]*)[\}\]]([\s\S]*)/) || []
44+
4445
if (matches.length !== 3) {
4546
return null
4647
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"declaration": true,
99
"esModuleInterop": true,
1010
"skipDefaultLibCheck": true,
11+
"skipLibCheck": true,
1112
"sourceMap": true
1213
},
1314
"include": [

0 commit comments

Comments
 (0)