Skip to content

Instantly share code, notes, and snippets.

View hinodi's full-sized avatar
🎯
Focusing

Dinh Huynh hinodi

🎯
Focusing
  • Ho Chi Minh City
View GitHub Profile
@hinodi
hinodi / dinh.js
Last active September 25, 2025 14:51
function parse(text) {
let prdText = text
const result = []
let i = 0
function findNext(delimit, tmpText, start, type) {
const dmlSize = delimit.length
for (i = start + dmlSize + 1; i < tmpText.length; i++) {
if (tmpText.slice(i, i + dmlSize) === delimit) {
let _text = removeSubstring(tmpText, i, i + dmlSize)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.