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)

1  
static boolean isOpeningTag(S token, S tag) {
2  
  ret isTag(token, tag) && !token.endsWith("/>");
3  
}
4  
5  
static boolean isOpeningTag(S token) {
6  
  ret token.startsWith("<")
7  
    && token.endsWith(">")
8  
    && !token.endsWith("/>")
9  
    && isLetter(token.charAt(1));
10  
}    

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: 544 / 572
Version history: 1 change(s)
Referenced in: [show references]