:art: Add MemberActivityContributionWelfareUnlockingInfo %!s(int64=4) %!d(string=hace) años 0044_auto_20221026_1402.py c3085071d6 update migrate %!s(int64=4) %!d(string=hace) años 0045_auto_20221026_2102.py fa4319da16 fix # -*- coding: utf-8 -*- %!s(int64=4) %!d(string=hace) años 0046_alter_memberactivitycontributionwelfareunlockinginfo_unique_together.py cd1f86300b MemberActivityContributionWelfareUnlockingInfo 唯一性校验 %!s(int64=4) %!d(string=hace) años 0046_memberactivitycontributionwelfareunlockinginfo_welfare_value.py 2bf8b860dd :art: MEMBER_ACTIVITY_CONTRIBUTION_WELFARE %!s(int64=4) %!d(string=hace) años 0047_memberactivitycontributionwelfareunlockinginfo_welfare_type.py a218d069b8 :art: Add user integral when activity_contribute_welfare_unlocking_handled %!s(int64=4) %!d(string=hace) años 0048_merge_20221027_2056.py 15861b0971 fix migration conflict %!s(int64=4) %!d(string=hace) años 0049_alter_memberactivityinfo_limit_image_num.py d0c465e61f :art: limit_image_num %!s(int64=4) %!d(string=hace) años 0050_memberactivityinfo_contribution_content_placeholder.py 2b06603330 MemberActivityInfo增加contribution_content_placeholder %!s(int64=4) %!d(string=hace) años 0051_alter_memberactivitycontributionwelfareunlockinginfo_unique_together.py 0b9aeeba51 :art: Opt Codes %!s(int64=4) %!d(string=hace) años 0052_auto_20221107_2238.py c9dfed476b :art: Support QINIU_FILE_URL_HTTPS %!s(int64=4) %!d(string=hace) años __init__.py 3d0d214667 :sparkles: Member Infos %!s(int64=7) %!d(string=hace) años adminSystem - Gogs: Go Git Service

Nenhuma Descrição

FFIB: 11e3a9652a first 8 anos atrás
..
lib 11e3a9652a first 8 anos atrás
LICENSE.txt 11e3a9652a first 8 anos atrás
README.md 11e3a9652a first 8 anos atrás
package.json 11e3a9652a first 8 anos atrás

README.md

Validate XML Names and Qualified Names

This package simply tells you whether or not a string matches the Name or QName productions in the XML Namespaces specification. We use it for implementing the validate algorithm in jsdom, but you can use it for whatever you want.

Usage

This package's main module's default export takes a string and will return an object of the form { success, error }, where success is a boolean and if it is false, then error is a string containing some hint as to where the match went wrong.

"use strict":
var xnv = require("xml-name-validator");
var assert = require("assert");

// Will return { success: true, error: undefined }
xnv.name("x");
xnv.name(":");
xnv.name("a:0");
xnv.name("a:b:c");

// Will return { success: false, error: <an explanatory string> }
xnv.name("\\");
xnv.name("'");
xnv.name("0");
xnv.name("a!");

// Will return { success: true, error: undefined }
xnv.qname("x");
xnv.qname("a0");
xnv.qname("a:b");

// Will return { success: false, error: <an explanatory string> }
xnv.qname(":a");
xnv.qname(":b");
xnv.qname("a:b:c");
xnv.qname("a:0");