ketcher-react 2.21.0-rc.2 → 2.22.0-rc.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +20 -17
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +20 -17
- package/dist/index.modern.js.map +1 -1
- package/dist/script/ui/data/utils.d.ts +11 -0
- package/dist/script/ui/data/utils.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get match groups from string representation of charge. It returns RegExpExecArray for charges with values +-[0..15]
|
|
3
|
+
* overwise returns null
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* matchCharge("16") === null
|
|
7
|
+
* matchCharge("0") === []
|
|
8
|
+
* matchCharge("-1") === ["-1", "-", "1", ""]
|
|
9
|
+
* matchCharge("15+") === ["15+", "", "15", "+"]
|
|
10
|
+
*/
|
|
11
|
+
export declare function matchCharge(charge: string): RegExpExecArray | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|