Skip to content

Commit

Permalink
feat(hermes): use toLocaleLowerCase since hermes support
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwcg committed Jan 23, 2025
1 parent ba21ba9 commit 434fe2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion driver/js/packages/hippy-react/src/utils/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function isNativeGesture(name) {
}

function translateToNativeEventName(name) {
return name.replace(/^(on)?/g, '').toLowerCase();
return name.replace(/^(on)?/g, '').toLocaleLowerCase();
}

function isTextNode(targetNode: ElementNode) {
Expand Down
2 changes: 1 addition & 1 deletion driver/js/packages/hippy-vue-next/src/util/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function isNativeGesture(name: string) {
}

function translateToNativeEventName(name: string) {
return name.replace(/^(on)?/g, '').tLowerCase();
return name.replace(/^(on)?/g, '').toLocaleLowerCase();
}

const RelativeToRefType = {
Expand Down
2 changes: 1 addition & 1 deletion driver/js/packages/hippy-vue/src/util/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function isNativeGesture(name: keyof typeof NativeEventMap) {
}

function translateToNativeEventName(name: string) {
return name.replace(/^(on)?/g, '').toLowerCase();
return name.replace(/^(on)?/g, '').toLocaleLowerCase();
}

// event method constant
Expand Down

0 comments on commit 434fe2b

Please sign in to comment.