Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1005090 // isOpeningTag - check if it's not a self-closing tag (ending with />)

JavaX fragment (include)

static boolean isOpeningTag(S token, S tag) {
  ret isTag(token, tag) && !token.endsWith("/>");
}

static boolean isOpeningTag(S token) {
  ret token.startsWith("<")
    && token.endsWith(">")
    && !token.endsWith("/>")
    && isLetter(token.charAt(1));
}    

Author comment

Began life as a copy of #1001262

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005090
Snippet name: isOpeningTag - check if it's not a self-closing tag (ending with />)
Eternal ID of this version: #1005090/2
Text MD5: 89167d3ae4785e7c38524f13010c0379
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-17 16:50:46
Source code size: 272 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 387 / 392
Version history: 1 change(s)
Referenced in: [show references]