Skip to content

Commit ce34440

Browse files
authored
remove hex handler as handled in fortune level (#124)
1 parent 38ed21e commit ce34440

3 files changed

Lines changed: 3 additions & 16 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@fileverse-dev/dsheet",
33
"private": false,
44
"description": "DSheet",
5-
"version": "1.0.37",
5+
"version": "1.0.38",
66
"main": "dist/index.es.js",
77
"module": "dist/index.es.js",
88
"exports": {

package/utils/after-update-cell.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,6 @@ const adjustRowHeight = ({
383383
}
384384
};
385385

386-
function isHexValue(str: string): boolean {
387-
// Accepts with or without 0x prefix
388-
return /^0x?[a-fA-F0-9]+$/.test(str);
389-
}
390-
391386
/**
392387
* Handles logic after a cell is updated, including processing formula results
393388
*
@@ -421,14 +416,6 @@ export const afterUpdateCell = async (
421416
row: params.row,
422417
});
423418

424-
if (isHexValue(newValue.v as string)) {
425-
sheetEditorRef.current?.setCellValue(params.row, params.column, {
426-
...newValue,
427-
m: newValue.v,
428-
ct: { fa: '@', t: 's' },
429-
});
430-
}
431-
432419
// Handle onboarding if needed
433420
const { row, column } = handleOnboarding(params);
434421
const updatedParams = { ...params, row, column };

0 commit comments

Comments
 (0)