更新 regex
This commit is contained in:
@@ -136,7 +136,7 @@
|
|||||||
*/
|
*/
|
||||||
_self.parseCelltoCoordinate = function (tag) {
|
_self.parseCelltoCoordinate = function (tag) {
|
||||||
|
|
||||||
let re = /([A-Za-z])(\d+)/;
|
let re = /([A-Za-z]+)(\d+)/;
|
||||||
let match = tag.match(re);
|
let match = tag.match(re);
|
||||||
|
|
||||||
return new _self.CellCoordinate(_self.getIdxByAlphbet(match[1]), parseInt(match[2]) - 1);
|
return new _self.CellCoordinate(_self.getIdxByAlphbet(match[1]), parseInt(match[2]) - 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user