|
@@ -318,7 +318,7 @@
|
|
},
|
|
},
|
|
//字符串中的 "平" 字符替换为 "㎡"
|
|
//字符串中的 "平" 字符替换为 "㎡"
|
|
convertPingToSquareMeter(text) {
|
|
convertPingToSquareMeter(text) {
|
|
- return text.replace(/(\d+)(平)/g, '$1㎡'); // 使用正则表达式替换
|
|
|
|
|
|
+ return text.replace(/(\d+)(平|m2)/g, '$1㎡'); // 使用正则表达式替换
|
|
},
|
|
},
|
|
extractNumber(text) {
|
|
extractNumber(text) {
|
|
const parts = text.split('第')[1]; // 分割并获取数字部分
|
|
const parts = text.split('第')[1]; // 分割并获取数字部分
|