Skip to content

Commit

Permalink
Increase min browser support
Browse files Browse the repository at this point in the history
  • Loading branch information
alattalatta committed May 12, 2023
1 parent a428d98 commit 5058939
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
> 1%
last 2 versions

android >= 4.4
ios >= 10
chrome >= 50
ios >= 12

not dead
not ie > 0
6 changes: 2 additions & 4 deletions src/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ const hasNoCoda = (char: string, ignoreRieul: boolean): boolean => {
* // ['(이)', '']
*/
const resolve = (tokenString: string, testString: string): readonly [token: string, postposition: string] | null => {
const foundToken = ppMap.find((pair) => tokenString.startsWith(pair[0]))
return foundToken
? [foundToken[0], foundToken[1][+hasNoCoda(getLastChar(testString), foundToken[0] == '(으)로')]]
: null
const foundPair = ppMap.find((pair) => tokenString.startsWith(pair[0]))
return foundPair ? [foundPair[0], foundPair[1][+hasNoCoda(getLastChar(testString), foundPair[0] == '(으)로')]] : null
}

export { resolve }

0 comments on commit 5058939

Please sign in to comment.