feat: check if char is num

This commit is contained in:
karishmas6
2024-06-06 05:09:52 +05:30
parent 1aa120120e
commit a40ed23275

View File

@@ -660,7 +660,12 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
return selector;
}
// isCharacterNumber
function isCharacterNumber(char: string) {
return char.length === 1 && char.match(/[0-9]/);
}
};