var CJK = /[\u4E00-\u9FFF]/;
var RE_NUM = /\d+(?:\.\d+)?/g;
function hasNoExtractablePrice(s) {
    var t = s.trim();
    if (!t) return true;
    if (!/\d/.test(t)) return true;
    if (t.replace(/[^\d.]/g, '') === '') return true;
    return false;
}
export function shouldRenderPriceAsRaw(s) {
    if (hasNoExtractablePrice(s)) {
        return true;
    }
    var t = s.trim();
    if (!CJK.test(t)) return false;
    var matches = Array.from(t.matchAll(RE_NUM));
    if (matches.length < 2) return false;
    var a = matches[0];
    var b = matches[1];
    var i0 = a.index;
    var i1 = b.index;
    var between = t.slice(i0 + a[0].length, i1);
    return CJK.test(between);
}
